From 6d9a766a6d55b504e7bca7f7e7888295ace99ae5 Mon Sep 17 00:00:00 2001 From: tsteven4 Date: Sat, 18 Nov 2017 12:35:53 -0700 Subject: [PATCH] fix globalsat dump on windows. --- globalsat_sport.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/globalsat_sport.cc b/globalsat_sport.cc index ec20d363e..20e17da2d 100644 --- a/globalsat_sport.cc +++ b/globalsat_sport.cc @@ -412,7 +412,7 @@ rd_init(const QString& fname) printf(MYNAME " rd_init()\n"); } if (opt_dump_file) { - dumpfile = gbfopen(opt_dump_file, "w", MYNAME); + dumpfile = gbfopen(opt_dump_file, "wb", MYNAME); if (!dumpfile) { printf(MYNAME " rd_init() creating dumpfile %s FAILED continue anyway\n",opt_dump_file); } else { @@ -425,7 +425,7 @@ rd_init(const QString& fname) serial_init(qPrintable(fname)); } else { // read from dump-file instead of serial - in_file = gbfopen(fname, "r", MYNAME); + in_file = gbfopen(fname, "rb", MYNAME); is_fatal(!in_file, "Could not open dumpfile for input: %s", qPrintable(fname)); } -- 2.30.2